/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CadastroSaidasEstoque.java
 *
 * Created on 13/10/2011, 13:31:02
 */
package frames.Cadastro;

import logicaBancoDeDados.ConectaProdutos;
import classes.Produto;
import javax.swing.JOptionPane;
import frames.Gerenciamento.*;
import frames.Menus.*;

/**
 *
 * @author User
 */
public class CadastroSaidasEstoque extends javax.swing.JFrame {

    /** Creates new form CadastroSaidasEstoque */
    public CadastroSaidasEstoque() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel4 = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        jButton4 = new javax.swing.JButton();
        panelSaida = new javax.swing.JPanel();
        lbQuant = new javax.swing.JLabel();
        lbBarCode = new javax.swing.JLabel();
        tfQuant = new javax.swing.JTextField();
        lbMessage = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jFormattedTextField1 = new javax.swing.JFormattedTextField();
        tfBarCode = new javax.swing.JFormattedTextField();
        jPanel1 = new javax.swing.JPanel();
        btSalvar = new javax.swing.JButton();
        btLimpar = new javax.swing.JButton();
        btVoltar = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        menuArquivo = new javax.swing.JMenu();
        itemMenuPrincipal = new javax.swing.JMenuItem();
        itemMenuCadastro = new javax.swing.JMenuItem();
        itemMenuGerenciamento = new javax.swing.JMenuItem();
        itemFechar = new javax.swing.JMenuItem();
        menuCadastro = new javax.swing.JMenu();
        itemCadastraDistribuidores = new javax.swing.JMenuItem();
        itemCadastraVendedores = new javax.swing.JMenuItem();
        itemCadastraProdutos = new javax.swing.JMenuItem();
        itemCadastraSaidaEstoque = new javax.swing.JMenuItem();
        menuGerenciamento = new javax.swing.JMenu();
        itemGerenciaCategorias = new javax.swing.JMenuItem();
        itemGerenciaDistribuidores = new javax.swing.JMenuItem();
        itemGerenciaGarantias = new javax.swing.JMenuItem();
        itemGerenciaProdutos = new javax.swing.JMenuItem();
        itemGerenciaVendedores = new javax.swing.JMenuItem();
        menuAjuda = new javax.swing.JMenu();
        itemSobre = new javax.swing.JMenuItem();

        jLabel4.setText("jLabel4");

        jTextField4.setText("jTextField4");

        jButton4.setText("jButton4");

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Saida de Produtos");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                Confirma(evt);
            }
        });

        panelSaida.setBorder(javax.swing.BorderFactory.createTitledBorder("Saída"));

        lbQuant.setText("Quantidade: ");

        lbBarCode.setText("Código de Barra:");

        jLabel1.setText("Data Saída:");

        jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter()));

        javax.swing.GroupLayout panelSaidaLayout = new javax.swing.GroupLayout(panelSaida);
        panelSaida.setLayout(panelSaidaLayout);
        panelSaidaLayout.setHorizontalGroup(
            panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelSaidaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lbMessage, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 362, Short.MAX_VALUE)
                    .addGroup(panelSaidaLayout.createSequentialGroup()
                        .addGroup(panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbBarCode)
                            .addComponent(lbQuant))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelSaidaLayout.createSequentialGroup()
                                .addComponent(tfQuant, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(panelSaidaLayout.createSequentialGroup()
                                        .addGap(85, 85, 85)
                                        .addComponent(jFormattedTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE))
                                    .addComponent(jLabel1)))
                            .addComponent(tfBarCode, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE))))
                .addContainerGap())
        );

        panelSaidaLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jFormattedTextField1, tfQuant});

        panelSaidaLayout.setVerticalGroup(
            panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelSaidaLayout.createSequentialGroup()
                .addGroup(panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbBarCode)
                    .addComponent(tfBarCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelSaidaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tfQuant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbQuant)
                    .addComponent(jLabel1)
                    .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lbMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        btSalvar.setText("Salvar");
        btSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSalvarActionPerformed(evt);
            }
        });

        btLimpar.setText("Limpar");
        btLimpar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btLimparActionPerformed(evt);
            }
        });

        btVoltar.setText("Voltar");
        btVoltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btVoltarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btSalvar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btLimpar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btVoltar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btLimpar, btSalvar, btVoltar});

        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btSalvar)
                    .addComponent(btLimpar)
                    .addComponent(btVoltar))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        menuArquivo.setText("Menu");

        itemMenuPrincipal.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK));
        itemMenuPrincipal.setText("Menu Principal");
        itemMenuPrincipal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemMenuPrincipalActionPerformed(evt);
            }
        });
        menuArquivo.add(itemMenuPrincipal);

        itemMenuCadastro.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK));
        itemMenuCadastro.setText("Menu Cadastro");
        itemMenuCadastro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemMenuCadastroActionPerformed(evt);
            }
        });
        menuArquivo.add(itemMenuCadastro);

        itemMenuGerenciamento.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));
        itemMenuGerenciamento.setText("Menu Gerenciamento");
        itemMenuGerenciamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemMenuGerenciamentoActionPerformed(evt);
            }
        });
        menuArquivo.add(itemMenuGerenciamento);

        itemFechar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        itemFechar.setText("Fechar");
        itemFechar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemFecharActionPerformed(evt);
            }
        });
        menuArquivo.add(itemFechar);

        jMenuBar1.add(menuArquivo);

        menuCadastro.setText("Cadastro");

        itemCadastraDistribuidores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        itemCadastraDistribuidores.setText("Distribuidores");
        itemCadastraDistribuidores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemCadastraDistribuidoresActionPerformed(evt);
            }
        });
        menuCadastro.add(itemCadastraDistribuidores);

        itemCadastraVendedores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_SPACE, java.awt.event.InputEvent.CTRL_MASK));
        itemCadastraVendedores.setText("Vendedores");
        itemCadastraVendedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemCadastraVendedoresActionPerformed(evt);
            }
        });
        menuCadastro.add(itemCadastraVendedores);

        itemCadastraProdutos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER, 0));
        itemCadastraProdutos.setText("Produtos");
        itemCadastraProdutos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemCadastraProdutosActionPerformed(evt);
            }
        });
        menuCadastro.add(itemCadastraProdutos);

        itemCadastraSaidaEstoque.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        itemCadastraSaidaEstoque.setText("Saida de Estoque");
        itemCadastraSaidaEstoque.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemCadastraSaidaEstoqueActionPerformed(evt);
            }
        });
        menuCadastro.add(itemCadastraSaidaEstoque);

        jMenuBar1.add(menuCadastro);

        menuGerenciamento.setText("Gerenciamento");

        itemGerenciaCategorias.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        itemGerenciaCategorias.setText("Categorias");
        itemGerenciaCategorias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciaCategoriasActionPerformed(evt);
            }
        });
        menuGerenciamento.add(itemGerenciaCategorias);

        itemGerenciaDistribuidores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        itemGerenciaDistribuidores.setText("Distribuidores");
        itemGerenciaDistribuidores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciaDistribuidoresActionPerformed(evt);
            }
        });
        menuGerenciamento.add(itemGerenciaDistribuidores);

        itemGerenciaGarantias.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        itemGerenciaGarantias.setText("Garantias");
        itemGerenciaGarantias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciaGarantiasActionPerformed(evt);
            }
        });
        menuGerenciamento.add(itemGerenciaGarantias);

        itemGerenciaProdutos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        itemGerenciaProdutos.setText("Produtos");
        itemGerenciaProdutos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciaProdutosActionPerformed(evt);
            }
        });
        menuGerenciamento.add(itemGerenciaProdutos);

        itemGerenciaVendedores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        itemGerenciaVendedores.setText("Vendedores");
        itemGerenciaVendedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemGerenciaVendedoresActionPerformed(evt);
            }
        });
        menuGerenciamento.add(itemGerenciaVendedores);

        jMenuBar1.add(menuGerenciamento);

        menuAjuda.setText("Ajuda");

        itemSobre.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F12, 0));
        itemSobre.setText("Sobre");
        itemSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                itemSobreActionPerformed(evt);
            }
        });
        menuAjuda.add(itemSobre);

        jMenuBar1.add(menuAjuda);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(panelSaida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelSaida, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btVoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btVoltarActionPerformed
        int resposta = JOptionPane.showConfirmDialog(null, "Deseja finalizar essa operação?", "Finalizar", JOptionPane.YES_NO_OPTION);
        //sim = 0, nao = 1  
        if (resposta == 0) {
            new MenuPrincipal().setVisible(true);
            dispose();
        }

    }//GEN-LAST:event_btVoltarActionPerformed

    private void btLimparActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btLimparActionPerformed
        lbMessage.setText(null);
        tfBarCode.setText(null);
        tfQuant.setText(null);
    }//GEN-LAST:event_btLimparActionPerformed

    private void Confirma(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_Confirma
        int resposta = JOptionPane.showConfirmDialog(null, "Deseja finalizar essa operação?", "Finalizar", JOptionPane.YES_NO_OPTION);
        //sim = 0, nao = 1  
        if (resposta == 0) {
            new MenuPrincipal().setVisible(true);
            dispose();
        }
    }//GEN-LAST:event_Confirma

    private void btSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSalvarActionPerformed
        Produto produto = new Produto();
        ConectaProdutos con = new ConectaProdutos();
        try {
            if (tfBarCode.getText().matches("^[0-9]*$")) {
                produto.setBarCode(tfBarCode.getText());
                produto.setQuantidade(Integer.parseInt(tfQuant.getText()));
                //   con.CadastroSaidasEstoque(Produto);
            } else {
                JOptionPane.showMessageDialog(null, "Código de barras inválido");
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(null, "Formato inválido");
        }
    }//GEN-LAST:event_btSalvarActionPerformed

   private void itemMenuPrincipalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemMenuPrincipalActionPerformed
        new MenuPrincipal().setVisible(true);
        dispose();
    }//GEN-LAST:event_itemMenuPrincipalActionPerformed

    private void itemMenuCadastroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemMenuCadastroActionPerformed
        new MenuCadastro().setVisible(true);
    }//GEN-LAST:event_itemMenuCadastroActionPerformed

    private void itemMenuGerenciamentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemMenuGerenciamentoActionPerformed
        new MenuGerenciamento().setVisible(true);
    }//GEN-LAST:event_itemMenuGerenciamentoActionPerformed

    private void itemFecharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemFecharActionPerformed
        int resposta = JOptionPane.showConfirmDialog(null, "Deseja realmente encerrar o programa", "Confirmação", JOptionPane.YES_NO_OPTION);
        if (resposta == 0) {
            System.exit(0);
            dispose();
        }
    }//GEN-LAST:event_itemFecharActionPerformed

    private void itemCadastraDistribuidoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemCadastraDistribuidoresActionPerformed
        new CadastroDistribuidores().setVisible(true);
    }//GEN-LAST:event_itemCadastraDistribuidoresActionPerformed

    private void itemCadastraVendedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemCadastraVendedoresActionPerformed
        new CadastroVendedores().setVisible(true);
    }//GEN-LAST:event_itemCadastraVendedoresActionPerformed

    private void itemCadastraProdutosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemCadastraProdutosActionPerformed
        new CadastroProdutos().setVisible(true);
    }//GEN-LAST:event_itemCadastraProdutosActionPerformed

    private void itemCadastraSaidaEstoqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemCadastraSaidaEstoqueActionPerformed
        new CadastroSaidasEstoque().setVisible(true);
    }//GEN-LAST:event_itemCadastraSaidaEstoqueActionPerformed

    private void itemGerenciaCategoriasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciaCategoriasActionPerformed
        new GerenciaCategorias().setVisible(true);
    }//GEN-LAST:event_itemGerenciaCategoriasActionPerformed

    private void itemGerenciaDistribuidoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciaDistribuidoresActionPerformed
        new GerenciaDistribuidores().setVisible(true);

    }//GEN-LAST:event_itemGerenciaDistribuidoresActionPerformed

    private void itemGerenciaGarantiasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciaGarantiasActionPerformed
        new GerenciaGarantias().setVisible(true);

    }//GEN-LAST:event_itemGerenciaGarantiasActionPerformed

    private void itemGerenciaProdutosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciaProdutosActionPerformed
        new GerenciaProdutos().setVisible(true);
    }//GEN-LAST:event_itemGerenciaProdutosActionPerformed

    private void itemGerenciaVendedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemGerenciaVendedoresActionPerformed
        new GerenciaVendedores().setVisible(true);
    }//GEN-LAST:event_itemGerenciaVendedoresActionPerformed

    private void itemSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemSobreActionPerformed
        JOptionPane.showMessageDialog(null, "Programa criado por Danilo Vicente Diorio \n\n\n Sob Licença GPL.");
    }//GEN-LAST:event_itemSobreActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CadastroSaidasEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CadastroSaidasEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CadastroSaidasEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CadastroSaidasEstoque.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new CadastroSaidasEstoque().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btLimpar;
    private javax.swing.JButton btSalvar;
    private javax.swing.JButton btVoltar;
    private javax.swing.JMenuItem itemCadastraDistribuidores;
    private javax.swing.JMenuItem itemCadastraProdutos;
    private javax.swing.JMenuItem itemCadastraSaidaEstoque;
    private javax.swing.JMenuItem itemCadastraVendedores;
    private javax.swing.JMenuItem itemFechar;
    private javax.swing.JMenuItem itemGerenciaCategorias;
    private javax.swing.JMenuItem itemGerenciaDistribuidores;
    private javax.swing.JMenuItem itemGerenciaGarantias;
    private javax.swing.JMenuItem itemGerenciaProdutos;
    private javax.swing.JMenuItem itemGerenciaVendedores;
    private javax.swing.JMenuItem itemMenuCadastro;
    private javax.swing.JMenuItem itemMenuGerenciamento;
    private javax.swing.JMenuItem itemMenuPrincipal;
    private javax.swing.JMenuItem itemSobre;
    private javax.swing.JButton jButton4;
    private javax.swing.JFormattedTextField jFormattedTextField1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JLabel lbBarCode;
    private javax.swing.JLabel lbMessage;
    private javax.swing.JLabel lbQuant;
    private javax.swing.JMenu menuAjuda;
    private javax.swing.JMenu menuArquivo;
    private javax.swing.JMenu menuCadastro;
    private javax.swing.JMenu menuGerenciamento;
    private javax.swing.JPanel panelSaida;
    private javax.swing.JFormattedTextField tfBarCode;
    private javax.swing.JTextField tfQuant;
    // End of variables declaration//GEN-END:variables
}
